package com.ycq.testng;

import org.testng.annotations.*;

public class BaseicAnnotation {
    @Test
    public void testCase1(){
        System.out.println("这是测试用例1");
    }
    @Test
    public void testCase2(){
        System.out.println("这是测试用例2");
    }
    @BeforeMethod
    public  void beforeMethod(){
        System.out.println("BeforeMethod-这是在测试方法之前运行的");
    }
    @AfterMethod
    public void afterMethod(){
        System.out.println("AfterMethod-这是在测试方法之后运行的");
        System.out.println("----------------------------");
    }
    @BeforeClass
    public void beforeClass(){
        System.out.println("BeforeClass-这是在类运行之前运行");
    }
    @AfterClass
    public void afterClass(){
        System.out.println("AfterClass-这是在类运行之后");
        System.out.println("??????????????????");
    }
    @BeforeSuite
    public void beforeSuit(){
        System.out.println("BeforeSuite");
    }
    @AfterSuite
    public void afterSuite(){
        System.out.println("AfterSuite");
        System.out.println("+++++++++++++++++++++");
    }
    @BeforeTest
    public void beforeTest(){
        System.out.println("BeforeTest");
    }

    @AfterTest
    public void afterTest(){
        System.out.println("AfterTest");
    }
}
